using Ninject.Modules;
using PersonMgrApp.Implementations;
using PersonMgrApp.Interfaces;

namespace PersonMgrApp
{
    class PersonMgrNinjectModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IConfiguration>().To<AppConfigWrapper>();
            Bind<IDataAccessLayer>().To<InMemoryDAL>().InSingletonScope();
            Bind<IPersonMgr>().To<PersonMgr>().InSingletonScope();
        }
    }
}